/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entities;

import java.io.Serializable;

/**
 *
 * @author frankkie
 */
public class Uitlening implements Serializable{

  private String datum;
  private Persoon persoon;
  private CD cd;

  public Uitlening(Persoon p, CD cd, String datum) {
    this.persoon = p;
    this.cd = cd;
    this.datum = datum;
  }

  @Override
  public String toString() {
    return "" + getPersoon() + " leent: " + getCd() + " op: " + getDatum();
  }

  /**
   * @return the datum
   */
  public String getDatum() {
    return datum;
  }

  /**
   * @return the p
   */
  public Persoon getPersoon() {
    return persoon;
  }

  /**
   * @return the cd
   */
  public CD getCd() {
    return cd;
  }
}
